/*
 * Home.java
 *
 * Created on January 29, 2007, 11:11 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package ge.info.pages;

import ge.info.domain.StringString;
import ge.ktapestry.pages.BasePageExt;
import org.apache.tapestry.IRequestCycle;


import java.util.*;

public abstract class ChurchCalendar extends BasePageExt
{

    public static int SERVICE_ID = 22;

    public abstract Date getChDate();

    public abstract void setChDate(Date date);

    public abstract String getScrit();

    public abstract void setScrit(String s);

    public abstract List<TreeMap> getChMessages();

    public abstract void setChMessages(List<TreeMap> list);

    public abstract TreeMap getMessage();

    public abstract void setMessage(TreeMap message);

    public abstract StringString getStringString();

    public abstract void setStringString(StringString stringString);

    public void search(IRequestCycle cycle)
    {

        StringString stringString = new StringString();
        if (getChDate() != null)
        {
            stringString.setSdate(getChDate());
        }
        if (getScrit() != null)
        {
            stringString.setStringOne(getScrit());
        }
        this.setChMessages(getDbExecutor().getChMessages(stringString));

    }
}
